using System;
using System.Collections.Generic;
using System.Linq;
using SPSAndong.Model;
using SPSAndong.Service;
using Leeder.Business;

namespace SPSAndong.Business
{
    /// <summary>
    /// 
    /// </summary>
   public class OpcGroupBLL : BaseBLL<OpcGroupModel, OpcGroupService>
   {
        public OpcGroupBLL()
        {
            Service = new OpcGroupService();
        }

        public List<OpcGroupModel> GetModelAll()
        {
            return Service.Query(p => (!p.IsPhantom || p.IsPhantom == null)).ActivedObj;
        }

        public OpcGroupModel GetModel()
        {
            return Service.Query(p => (!p.IsPhantom || p.IsPhantom == null)).ActivedObj.FirstOrDefault();
        }

    }
}
